import fetch from "common/src/utils/fetch";

/**
 *  分页查询类内面试考核安排
 */
function interQueryList(data) {
  return fetch({
    url: "/api/majorservice/assessmentArrangementsQuery/interQueryList",
    method: "post",
    data
  });
}

/**
 *  分页查询跨类面试考核安排
 */
function crossQueryList(data) {
  return fetch({
    url: "/api/majorservice/assessmentArrangementsQuery/crossQueryList",
    method: "post",
    data
  });
}

/**
 *  类内面试考核安排导出
 */
function interExport(data) {
  return fetch({
    url: "/api/majorservice/assessmentArrangementsQuery/interExport",
    method: "post",
    data
  });
}

/**
 *  类内面试考核安排勾选导出
 */
function interExportSelectList(data) {
  return fetch({
    url: "/api/majorservice/assessmentArrangementsQuery/interExportSelectList",
    method: "post",
    data
  });
}

/**
 *  导出跨类面试考核学生名单
 */
function crossExport(data) {
  return fetch({
    url: "/api/majorservice/assessmentArrangementsQuery/crossExport",
    method: "post",
    data
  });
}

/**
 *  勾选导出跨类面试考核学生名单
 */
function crossExportSelectList(data) {
  return fetch({
    url: "/api/majorservice/assessmentArrangementsQuery/crossExportSelectList",
    method: "post",
    data
  });
}

function getReportStatus(key) {
  return fetch({
    url: `/api/majorservice/common/exportExcelResult/${key}`,
    method: 'get'
  });
}

/**
 * 类内根据学生id获取特色面试考核测试准考信息
 * */
function getInterFeatureByStudentId(data) {
  return fetch({
    url: `/api/majorservice/interFeaturedExam/getFeatureFromStudentId`,
    method: 'post',
    data
  });
}

/**
 * 类内根据学生id获取面试考核测试准考信息
 * */
function getInterviewByStudentId(data) {
  return fetch({
    url: `/api/majorservice/interInterview/getInterviewByStudentId`,
    method: 'post',
    data
  });
}

/**
 * 跨类根据学生id获取特色面试考核测试准考信息
 * */
function getCrossFeatureByStudentId(data) {
  return fetch({
    url: `/api/majorservice/crossFeatureExam/getCrossFeatureByStudentId`,
    method: 'post',
    data
  });
}

/**
 * 跨类根据学生id获取面试考核测试准考信息
 * */
function getCrossByStudentId(data) {
  return fetch({
    url: `/api/majorservice/crossInterviewExam/getCrossByStudentId`,
    method: 'post',
    data
  });
}

export default {
  interQueryList: interQueryList,
  crossQueryList: crossQueryList,
  interExport: interExport,
  interExportSelectList:interExportSelectList,
  crossExport: crossExport,
  crossExportSelectList: crossExportSelectList,
  getReportStatus: getReportStatus,
  getInterFeatureByStudentId : getInterFeatureByStudentId,
  getInterviewByStudentId: getInterviewByStudentId,
  getCrossFeatureByStudentId: getCrossFeatureByStudentId,
  getCrossByStudentId: getCrossByStudentId
};
